<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style type="text/css">
    table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto}
    table, th, td {border: 1px solid darkslategray;padding: 10px}
</style>
<body>

<div style="text-align: center">
    <span style="color: darkslategray; font-size: 30px">欢迎光临！</span>
    <form th:action="@{/user/findAdmin}" method="post">
        <table class="list">
            <tr>
                <th>车牌号</th>
                <th><input type="text" name="card"></th>
                <th>etc卡号</th>
                <th><input type="text" name="etcCard"></th>
                <th><button type="submit">查询</button> </th>
            </tr>
        </table>
    </form>
    <hr/>
    <table class="list">
        <tr>
            <th>id</th>
            <th>车牌号</th>
            <th>etc卡号</th>
            <th>余额</th>
            <th>用户名</th>
            <th>使用年限</th>
        </tr>
        <tr th:each="user : ${list}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.card}"></td>
            <td th:text="${user.etcCard}"></td>
            <td th:text="${user.money}"></td>
            <td th:text="${user.name}"></td>
            <td th:text="${user.year}"></td>
        </tr>
    </table>
</div>
</body>
</html>